﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ESOL.Common.Entity;

namespace ESOL.WinUI.Hr
{
    public partial class frmPrintFormLeaveApplication : BaseForm.frmBaseDialogyForm
    {
        private List<HrLeaveApplicationEntity> mLeaveApplication;
        public frmPrintFormLeaveApplication(List<HrLeaveApplicationEntity> list)
        {
            InitializeComponent();
            mLeaveApplication = list;
        }
        protected override void OnShown(EventArgs e)
        {
            frmPrintTempleteLeaveApplication xtrareport = new frmPrintTempleteLeaveApplication(mLeaveApplication);
            printControl1.PrintingSystem = xtrareport.PrintingSystem;
            xtrareport.CreateDocument();

        }
    }
}
